home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
tex
/
getpstxt.zip
/
GETPSTXT.DOC
< prev
Wrap
Text File
|
1989-05-22
|
1KB
|
33 lines
EXTRACT TEXT FROM A POSTSCRIPT FILE
by Scott Pakin
GETPSTXT is a filter like MORE and FIND. To use it, execute the
following command at the DOS prompt:
TYPE infile.ext | GETPSTXT > outfile.ext
"infile.ext" is the name of your input (PostScript) file and
"outfile.ext" is what you want to call the file containing the
extracted text from the input file.
Note that I wrote GETPSTXT quickly, so there are are lot of things
that aren't so great about it. The program is painfully slow. It
assumes there is exactly one space between words. It has no concept
of a new line. And it occasionally outputs garbage characters.
I'm sure there are a number of other problems I haven't caught.
However, I'm not planning on writing a better version, especially not
before I learn PostScript. (I wrote GETPSTXT knowing only what is
contained in a PostScript printout I generated from WordPerfect.) If
you would really like me to write an improved GETPSTXT, you can send
mail to the address below, but don't hold your breath waiting for
GETPSTXT II.
SEND ALL QUESTIONS AND COMMENTS TO:
Scott Pakin
6007 N. Sheridan Rd.
Chicago, IL 60660